package com.quectel.core.module.partyeducationtraining.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quectel.core.module.partyeducationtraining.dto.ref.TrainingItemRefConcourseItemDto;
import com.quectel.core.module.partyeducationtraining.dto.ref.TrainingItemRefPersonDto;
import com.quectel.core.module.partyeducationtraining.entity.TrainingItemPersonEntity;

import java.util.List;
import java.util.Map;

/**
 * @author ryan
 * @email ryan.ran@quectel.com
 * @date 2022/05/07 16:40
 */

public interface TrainingItemPersonDao extends BaseMapper<TrainingItemPersonEntity> {
    /**
     * 查询列表
     *
     * @param params
     * @return
     */
    List<TrainingItemPersonEntity> queryList(Map<String, Object> params);

    /**
     * 查询数量
     *
     * @param params
     * @return
     */
    int queryTotal(Map<String, Object> params);

    List<TrainingItemRefPersonDto> queryPersonList(Map<String, Object> params);

    int queryPersonTotal(Map<String, Object> params);

    List<TrainingItemRefConcourseItemDto> queryTrainingItemList(Map<String, Object> map);

    int queryTrainingItemTotal(Map<String, Object> map);

}
